package com.example.entity.export;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.format.DateTimeFormat;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import lombok.Data;

import java.util.Date;

/**
 * @Description: 员工实体类
 * @Author runto
 * @Date 2023/11/4 0:10
 * @PackageName:com.example.entity.export
 * @ClassName: EmpVo
 * @Version 1.0
 */
@Data
public class EmpVo {

    @ExcelProperty("员工编号")
    @ColumnWidth(20)
    private Long empNo;

    @ExcelProperty("员工姓名")
    @ColumnWidth(20)
    private String eName;

    @ExcelProperty("工作岗位")
    @ColumnWidth(20)
    private String job;

    @ExcelProperty("上级名称")
    @ColumnWidth(20)
    private String mgr;

    @ExcelProperty("雇佣日期")
    @ColumnWidth(20)
    @DateTimeFormat("yyyy-MM-dd")
    private String hireDate;

    @ExcelProperty("薪资")
    @ColumnWidth(20)
    private Long sal;

    @ExcelProperty("补贴")
    @ColumnWidth(20)
    private Long comm;

    @ExcelProperty("部门编号")
    @ColumnWidth(20)
    private Integer deptNo;

}
